const info: [string, number, boolean] = [ '张三', 18, true ]

function useState(initialState: number): [number, (newValue: number) => void] {
  let stateValue = initialState
  function setValue(newValue: number) {
    stateValue = newValue
  }
  return [stateValue, setValue]
}

// 返回值一个是数字，一个是函数
const [count, setCount] = useState(10)
console.log(count);
setCount(100)
console.log(count);

export {}